package com.financing.platform.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.financing.platform.dao.IActivitiesMollionsWealthDao;
import com.financing.platform.dto.ActivitesMollionsWealthDTO;
import com.financing.platform.util.SqlName;


@Repository("activitiesMollionsWealthDaoImpl")
public class ActivitiesMollionsWealthDaoImpl extends BaseDaoImpl implements IActivitiesMollionsWealthDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<ActivitesMollionsWealthDTO> queryActivitiesMollionsWealthProduct(
			ActivitesMollionsWealthDTO dto) throws Exception {
		return this.sqlMapClient.queryForList(SqlName.queryActivitiesMollionsWealth, dto);
	}

	@Override
	public int addActivitiesMollionsWealthProduct(ActivitesMollionsWealthDTO dto)
			throws Exception {
		return (Integer) this.sqlMapClient.insert(SqlName.addActivitiesMollionsWealthProduct, dto);
	}

	@Override
	public int updateActivitiesMollionsWealthProduct(
			ActivitesMollionsWealthDTO dto) throws Exception {
		return this.sqlMapClient.update(SqlName.updateActivitiesMollionsWealthProduct,dto);
	}

	@Override
	public int queryActivitiesMollionsWealthProductCount(
			ActivitesMollionsWealthDTO dto) throws Exception {
		return (Integer) this.sqlMapClient.queryForObject(SqlName.queryActivitiesMollionsWealthCount,dto);
	}

	@Override
	public int deleteActivitiesMollionsWealthProduct(ActivitesMollionsWealthDTO dto)
			throws Exception {
		return (Integer) this.sqlMapClient.update(SqlName.deleteActivitiesMollionsWealth,dto);
	}


}
